package com.fagertveit.android.game.framework.geom;

public class AABB {
	public Vector2 pos;
	public float width;
	public float height;
	
	public AABB(float x, float y, float width, float height) {
		this.pos = new Vector2(x, y);
		this.height = height;
		this.width = width;
	}
	
	public AABB(Vector2 pos, float width, float height) {
		this.pos = pos;
		this.width = width;
		this.height = height;
	}
	
	public AABB() {
		this.pos = new Vector2();
		this.width = 10.0f;
		this.height = 10.0f;
	}
	
	public AABB transform(Vector2 other) {
		this.pos.add(other);
		return this;
	}
	
	public AABB transfrorm(float x, float y) {
		this.pos.add(x, y);
		return this;
	}
	
	public void setPos(float x, float y) {
		this.pos.set(x, y);
	}
	
	public void setWidth(float width) {
		this.width = width;
	}
	
	public void setHeight(float height) {
		this.height = height;
	}
}
